﻿using System;
using System.Collections.Generic;

namespace Model
{
     ///<summary>
     ///实体类INSPECTION_DEV_INFO
     ///</summary>
     public class INSPECTION_DEV_INFO
     {
         private int __ID=0 ;
         private int __DevID=0 ;
         private string __DevName=string.Empty ;
         private string __DevEspName=string.Empty ;
         private string __DevItem=string.Empty ;

         private Dictionary<string, bool> __Changed = new Dictionary<string, bool>();


         public INSPECTION_DEV_INFO()
         {
             this.__Changed.Add("ID",false);
             this.__Changed.Add("DevID",false);
             this.__Changed.Add("DevName",false);
             this.__Changed.Add("DevEspName",false);
             this.__Changed.Add("DevItem",false);
         }

         /// <summary>
         /// 将类重置到初始化状态
         /// </summary>
         public void Reset()
         {
             this.__ID =0;
             this.__DevID =0;
             this.__DevName =string.Empty;
             this.__DevEspName =string.Empty;
             this.__DevItem =string.Empty;
             this.__Changed["ID"] = false;
             this.__Changed["DevID"] = false;
             this.__Changed["DevName"] = false;
             this.__Changed["DevEspName"] = false;
             this.__Changed["DevItem"] = false;
         }

         /// <summary>
         /// 获取类中成员的改变状态
         /// </summary>
         public bool Changed(string strKey)
         {
             return __Changed[strKey];
         }

         /// <summary>
         ///设置或获取类中的[ID]的数据
         /// </summary>
         public int ID
         {
              set{ __ID = value; __Changed["ID"] = true;}
              get{return __ID;}
         }
         /// <summary>
         ///设置或获取类中的[DevID]的数据
         /// </summary>
         public int DevID
         {
              set{ __DevID = value; __Changed["DevID"] = true;}
              get{return __DevID;}
         }
         /// <summary>
         ///设置或获取类中的[DevName]的数据
         /// </summary>
         public string DevName
         {
              set{ __DevName = value.Replace("'","’"); __Changed["DevName"] = true;}
              get{return __DevName;}
         }
         /// <summary>
         ///设置或获取类中的[DevEspName]的数据
         /// </summary>
         public string DevEspName
         {
              set{ __DevEspName = value.Replace("'","’"); __Changed["DevEspName"] = true;}
              get{return __DevEspName;}
         }
         /// <summary>
         ///设置或获取类中的[DevItem]的数据
         /// </summary>
         public string DevItem
         {
              set{ __DevItem = value.Replace("'","’"); __Changed["DevItem"] = true;}
              get{return __DevItem;}
         }
    }
}
